#include "VertexBuffer.h"
#include "RendererAPI.h"
#include "Fysics/GraphicsAPI/OpenGL/OpenGLVertexBuffer.h"

namespace Fysics
{
	VertexBuffer::VertexBuffer(int count)
		: m_VertexCount(count)
	{
	}

	int VertexBuffer::GetCount()
	{
		return m_VertexCount;
	}

	VertexBuffer* VertexBuffer::Create(const void* vertices, int count, int singleSize)
	{
		switch (GetAPI())
		{
		case RendererAPI::OpenGL:
			return new OpenGLVertexBuffer(vertices, count, singleSize);
		}
		return nullptr;
	}
}
